home *** CD-ROM | disk | FTP | other *** search
/ Night Owl 6 / Night Owl's Shareware - PDSI-006 - Night Owl Corp (1990).iso / 016a / dvped1_0.zip / DVPEDIT.MAN < prev    next >
Text File  |  1991-10-19  |  23KB  |  484 lines

  1. NAME
  2.     DvpEdit - a DESQview Program Information (DVP) file editor
  3.  
  4. VERSION
  5.     1.0  20 Oct 1991
  6.  
  7. SYNOPSIS
  8.     dvpedit [-b] [-dpath] [-hpath] [-m] [-o] [-s] [-?] [<dvp_file>]
  9.  
  10. DESCRIPTION
  11.     DvpEdit is a replacement for DESQview's Change a Program command, and, to
  12.     some extent, for the Add a Program command: it allows one to create and
  13.     edit DESQview Program Information (DVP) files, and to add DVP files to
  14.     DESQview's Open Window menu.  DvpEdit does everything Change a Program
  15.     does, and some of what Add a Program does, and in addition:
  16.  
  17.     - provides superior field editing and context-sensitive help
  18.     - provides access to DVP fields which Change a Program conceals
  19.     - can edit DVP files which are not on DESQview's Open Window menu
  20.     - can edit DVP files which are not named something of the form
  21.         ``xx-PIF.DVP''
  22.     - can be run from the command line.
  23.  
  24. OVERVIEW
  25.     The command ``dvpedit -o'' produces a close simulation of DESQview's
  26.     Change a Program command, with enhancements.  The command ``dvpedit''
  27.     produces a list of DVP files in the current directory from which the
  28.     user may select one to edit.  The command ``dvpedit <dvp_file>'' edits
  29.     <dvp_file> directly.  See the ``COMMAND LINE OPTIONS'' section below
  30.     for more information.
  31.  
  32.     To run DvpEdit from DESQview's Open Window menu, install any or all of
  33.     the supplied DVP files.  EP-PIF.DVP runs the command ``dvpedit -o'' to
  34.     simulate DESQview's Open Window menu for DVP file selection, ED-PIF.DVP
  35.     runs the command ``dvpedit'' for selection of a DVP file by name, and
  36.     MD-PIF.DVP runs the command ``dvpedit default'' to load DEFAULT.DVP,
  37.     which can be edited and saved under a new name, thus creating a new DVP
  38.     file.
  39.  
  40.     After a DVP file has been selected by one of these three methods,
  41.     DvpEdit presents its main editing screen.  Here the values in each of
  42.     the DVP file's fields may be changed, including several fields which
  43.     Change a Program does not allow the user to manipulate (see the
  44.     ``FIELDS'' section below for details).  To terminate the field editor,
  45.     the user may press Control-Enter to exit with all changes preserved, or
  46.     Escape to quit with all changes discarded (see the section on ``KEYS''
  47.     below for additional keys which are available in the field editor,
  48.     including an undo key which acts only on the current field).
  49.  
  50.     If the field edit was not aborted, the user is asked to confirm
  51.     the name of the DVP file to be saved.  All the field editing keys are
  52.     available, and the DVP file to be output may be changed; in addition,
  53.     Enter provides a quick way to exit.
  54.  
  55.     Whenever DvpEdit is used to alter or create a DVP file in the DESQview
  56.     system directory, DESQview's Open Window menu will be updated to reflect
  57.     the changes, unless the user declines to do this when prompted.  (If
  58.     DESQVIEW.DVO, the Open Window menu data, is changed, a backup copy is
  59.     saved in DESQ-BAK.DVO).  This feature enables DvpEdit to be used instead
  60.     of DESQview's Add a Program for some tasks: a DVP file can be loaded
  61.     from some other directory (e.g. the directory into which a new piece of
  62.     software has been unpacked), edited as required, and then saved into the
  63.     DESQview system directory; DvpEdit will then add the DVP file to the Open
  64.     Window menu if the user so wishes.
  65.  
  66.     As might be expected, DvpEdit is, in Quarterdeck's terms, a  ``DESQview-
  67.     aware'' program.  This means that DvpEdit may be run in a small window
  68.     or in the background without virtualization and without sacrificing
  69.     video update speed, and that DvpEdit makes a DESQview API ``pause'' call
  70.     whenever waiting for keyboard input, and so uses very little CPU time.
  71.     DvpEdit is not, however, ``DESQview-specific'': it can be run outside of
  72.     DESQview without difficulty.
  73.  
  74. CONFIGURATION
  75.     The colours used by DvpEdit may be configured with the program
  76.     DVPE-CFG.EXE.  DVPE-CFG.EXE allows the user to select colours, and saves
  77.     the selections in a file named ``DVPEDIT.CFG''.  If DvpEdit, when
  78.     executed, finds DVPEDIT.CFG in the directory in which DVPEDIT.EXE
  79.     resides, it will use the colours found therein rather than the default
  80.     blue and white colour scheme.
  81.  
  82.     The supplied EP-PIF.DVP, ED-PIF.DVP, and MD-PIF.DVP files contain
  83.     settings appropriate for running DvpEdit on nearly any system.  In
  84.     particular, the ``Max keypolls'' field in these DVP files should not be
  85.     set to anything other than the default (blank).  This is because DvpEdit
  86.     suspends itself whenever waiting for keyboard input, using almost no CPU
  87.     time; this makes it unnecessary to have DESQview do this for it.  The
  88.     interaction of the two features (i.e. if Max keypolls is nonzero) would
  89.     result in reduced DvpEdit performance without significantly reducing
  90.     system load.
  91.  
  92. COMMAND LINE OPTIONS
  93.     -b    Don't make a backup copy of the DVP file.  Backups are named with
  94.     the filename of the DVP file, with the extension changed to ``.BAK'',
  95.     and are placed in the same directory as the DVP file.
  96.  
  97.     -dpath  Path of the DESQview system directory.  This must be specified
  98.     if the environment variable DV is not set to the DESQview system
  99.     directory, and the DESQview system directory is neither ``C:\DV''
  100.     nor on the PATH.
  101.  
  102.     DvpEdit must always know the location of the DESQview system
  103.     directory in case the user intends to save a file there, so that
  104.     DESQVIEW.DVO can be updated.  If DvpEdit cannot find the DESQview
  105.     system directory when it is executed, it will signal this and abort.
  106.  
  107.     The DESQview system directory is sought in the following places, in
  108.     this order: first, the directory named with -d is checked if
  109.     specified.  If -d is not specified, the directory named in the
  110.     environment variable DV, if any, is checked.  If this fails,
  111.     ``C:\DV'' is checked.  If this fails, the PATH is searched.
  112.  
  113.     -hpath  Path to the help file, DVPEDIT.HLP.  If this is not specified,
  114.     the help file is sought in the directory in which DVPEDIT.EXE
  115.     resides.  Note that path should be a directory name without
  116.     ``DVPEDIT.HLP'' appended.
  117.  
  118.     -m    Use alternate mouse handling.  Without -m, DvpEdit provides a true
  119.     free-roaming mouse cursor.  If -m is specified, however, mouse
  120.     movements are treated as one or more presses of the cursor keys.
  121.     This is provided mostly because of a problem with incorrect mouse
  122.     position detection when using the default mouse handling on non-i386
  123.     systems in DESQview's emulated-text modes (see the ``BUGS'' section
  124.     below for details), but some users may prefer it.
  125.  
  126.     -o  Present the user with a list closely resembling DESQview's Open
  127.     Window menu, from which she may choose a DVP file to edit based on
  128.     its description and Open Window keys.
  129.  
  130.     -s    Assume that the desired DVP file resides in the DESQview system
  131.     directory.  If <dvp_file> is specified, it is looked for there;
  132.     otherwise a list all the DVP files in the DESQview system directory
  133.     is presented.  Ignored if -o is specified.
  134.  
  135.     -?  Print a short help message about these command line options.
  136.  
  137.     <dvp_file>  The name or Open Window keys of the file to edit.  If
  138.     <dvp_file> is one or two characters long, it is taken to be the
  139.     Open Window keys of the desired DVP file, and an attempt is made to
  140.     load the file named by appending ``-PIF.DVP'' (if <dvp_file> is two
  141.     characters long) or ``_-PIF.DVP'' (if <dvp_file> is one character
  142.     long) to <dvp_file>.  Otherwise, a filename is formed by appending
  143.     ``.DVP'' to <dvp_file> if necessary, and an attempt is made to load
  144.     that.
  145.  
  146.     To edit a DVP file with a one or two character name, specify the
  147.     ``.DVP'' extension explicitly.
  148.  
  149.     If <dvp_file> is not specified, a list of all the DVP files in the
  150.     current directory (or in the DESQview system directory if -s was
  151.     specified) is presented, unless -o is specified, in which case a
  152.     simulation of the Open Window menu is presented.
  153.  
  154. KEYS
  155.     F1 provides context-sensitive help anywhere in the program.
  156.  
  157.     In the selection lists, Enter or the left mouse button selects the
  158.     highlighted entry.  The highlight may be moved with the Up and Down
  159.     cursor keys or the mouse, and the list may be scrolled with the cursor
  160.     keys or PageUp and PageDown.  The selection process may be cancelled by
  161.     pressing Escape or clicking the right mouse button.
  162.  
  163.     In the Open Window menu (the display produced by -o), you may select an
  164.     item by its Open Window keys, just as in Change a Program.
  165.  
  166.     In the DVP file selection list, typing the first character of the name
  167.     of a DVP file moves the highlight to that name.
  168.  
  169.     In the editing dialogues, the following keys are active:
  170.  
  171.     Left, Right:            Movement within the current field
  172.     Home, End:                Beginning, end of field
  173.     Up, Down, Tab, Shift-Tab:        Movement between fields
  174.     Control-Left, Control-Right:    Word left, right
  175.     Control-Home, Control-End:        First, last field
  176.     Backspace, Control-Backspace:   Delete character, word to the left
  177.     Insert:                Toggle insert mode
  178.     Delete:                Delete character at cursor
  179.     Control-R:                Restore field to original contents
  180.     Control-_:                Restore field to original contents
  181.     Control-U:                Delete to end of field
  182.     Control-K:                Delete to end of field
  183.     Alt-Backspace:            Delete to end of screen
  184.     Control-Enter:            Save data and exit
  185.     Escape:                Quit without saving
  186.  
  187.     Clicking with the left mouse button also moves the current field highlight.
  188.     Clicking the right mouse button is equivalent to pressing Escape, and quits
  189.     the dialogue without saving any edited data.
  190.  
  191.     If invalid data is entered into a field, a beep will sound and the cursor
  192.     will remain in that field until either valid data is entered or the edit is
  193.     cancelled with Escape.
  194.  
  195.     Also, the user will not be allowed to leave the editing dialogue by
  196.     pressing Control-Enter if one or more fields contain invalid values (see
  197.     the section on ``VALID FIELD VALUES'' below for details).  In this case,
  198.     an error message will appear, and the dialogue will not terminate.
  199.  
  200. FIELDS
  201.     DvpEdit allows the user to edit several fields which are not available in
  202.     DESQview's Change a Program.  These are:
  203.  
  204.     Max keypolls:     The number of tests for keyboard input in one clock
  205.              tick the program should be allowed before it is
  206.              forced to give up the remainder of its time slice.
  207.              Default (blank) means the program is never suspended
  208.              before its slice ends.
  209.  
  210.              Setting this field to a low value such as 1 is
  211.              useful in preventing programs which poll the
  212.              keyboard while idle from expending excessive
  213.              quantities of CPU time on this unproductive
  214.              activity.  If such a program is to be run in the
  215.              background, setting this value to 1 in its DVP
  216.              file will often dramatically improve the speed of
  217.              the foreground program.
  218.  
  219.              This feature can also be used to control the
  220.              relative responsiveness of programs.  Programs which
  221.              are to be run primarily in the background can have
  222.              this set to a low value such as 1, while programs to
  223.              be run primarily in the foreground (especially those
  224.              which write to the screen using MS-DOS calls, since
  225.              these programs can be significantly slowed down by a
  226.              low Max keypolls value) are given a larger value (on
  227.              a fast machine such as an i386, a value of 100 is
  228.              often suitable) to improve responsiveness.
  229.  
  230.              There is no need to use this feature for
  231.              DESQview-aware programs (such as DvpEdit itself)
  232.              which automatically suspend themselves when waiting
  233.              for keyboard input, or for most programs which read
  234.              the keyboard only through MS-DOS or the BIOS.
  235.  
  236.              For those who have been using DVKPOLL.SHR: since
  237.              what DVKPOLL does is the equivalent of setting this
  238.              value to a small number, there is no need to use
  239.              DVKPOLL if you set this value in DvpEdit.
  240.  
  241.     Start hidden:     If Yes, the program is started hidden.  Due to the way
  242.                  DESQview interprets this setting, programs started
  243.                  hidden in this way cannot later be unhidden.
  244.  
  245.     Start in background: If Yes, the program is started in the background.
  246.  
  247.     For information on the fields which DvpEdit has in common with Change a
  248.     Program, please see the DESQview manuals, or DESQview's help on Change a
  249.     Program.
  250.  
  251.     Future versions of DvpEdit will fully document these fields.
  252.  
  253. VALID FIELD VALUES
  254.     Some fields must simply be non-empty.  These are Program name for menu,
  255.     Script buf, and Keys.  Parameters, Directory, Shared Program, and Data
  256.     may contain any text at all (including none).  The Y/N fields at the
  257.     bottom of the screen may be left blank only if marked "Y/N/blank".
  258.  
  259.     Other fields have required ranges of values and/or special conditions:
  260.  
  261.     Min memory:        1-999
  262.     Max memory:        0-999 or blank; if specified, must be greater than
  263.                 or equal to Min memory
  264.     Max exp memory:    0-9999 or blank
  265.     System memory:    0-999
  266.     Max height:        0-127
  267.     Max width:        0-127
  268.     Starting height:    0-127 or blank; if specified, must be less than or
  269.                 equal to Max height
  270.     Starting width:    0-127 or blank; if specified, must be less than or
  271.                 equal to Max width
  272.     Starting row:    0-127 or blank; if specified, must be less than or
  273.                 equal to Max height
  274.     Starting col:    0-127 or blank; if specified, must be less than or
  275.                 equal to Max width
  276.     Script buf:        0-32702
  277.     Text pages:        1-9; but if Max height is not 25 or Max width is not
  278.                 80, then only 1 is allowed
  279.     Graphics pages:    0-9
  280.     Initial mode:    2-22 hex or blank
  281.     Max key polls:    0-65535
  282.     Protection level:   0-3
  283.     Keyboard conflict:  0-F hex
  284.     Interrupts:        0-FF hex or blank; the last, if specified, must be
  285.                 greater than or equal to the first.
  286.  
  287. FILES
  288.     DVPEDIT.HLP        - The online help text.  Expected to be in the directory
  289.               specified with -h, or in the same directory as
  290.               DVPEDIT.EXE.  Most, but not all, of the information in
  291.               this manual is duplicated in the online help.
  292.     DVPEDIT.CFG        - If this file exists in the directory in which DVPEDIT.EXE
  293.                      resides, DvpEdit reads it to obtain the screen colours
  294.               to use, rather than using its built-in defaults.
  295.     DVPE-CFG.EXE    - The DvpEdit colour configuration program.  Creates
  296.               DVPEDIT.CFG.
  297.     EP-PIF.DVP        - DVP file which runs ``dvpedit -o''.
  298.     ED-PIF.DVP        - DVP file which runs ``dvpedit''.
  299.     MD-PIF.DVP        - DVP file which runs ``dvpedit default''.
  300.     DEFAULT.DVP        - DVP file used by MD-PIF.DVP to import default parameters
  301.               when creating a new DVP.
  302.     DESQVIEW.DVO    - DESQview's Open Window menu data file.
  303.     DESQ-BAK.DVO    - Backup copy of DESQVIEW.DVO, created whenever
  304.               DESQVIEW.DVO is changed.
  305.     *.DVP        - DESQview Program Information files.
  306.     *.BAK        - Backup copies of altered DVP files.
  307.  
  308. ENVIRONMENT VARIABLES
  309.     DV            - Path of DESQview system directory, e.g.
  310.                   ``C:\BIN\DESQVIEW''.
  311.     PATH        - Used to locate DESQview system directory if -d is
  312.               not given, $DV is not set, and the DESQview system
  313.               directory is not ``C:\DV''.
  314.  
  315. SEE ALSO
  316.     DESQview's Change a Program command and the documentation on it.
  317.  
  318. DIAGNOSTICS
  319.     DvpEdit exits with a return code of 0 upon successful completion.  If an
  320.     error occurs, it displays a diagnostic message, waits for a keystroke,
  321.     and exits with a return code of 1.
  322.  
  323.     The reported errors include the following.  Each group of messages is
  324.     followed by an explanation.
  325.  
  326.     No files matched input spec.
  327.     Path invalid or not found.
  328.         Cannot open <filename>.
  329.  
  330.     A file or directory specified on the command line could not be found.
  331.     Note that if an erroneous location for the help file is given with -h,
  332.     it will not be detected until the user attempts to use the help
  333.     facility.
  334.  
  335.     DESQview system directory not found.
  336.  
  337.     The DESQview system directory either was not given with -d and was not
  338.     C:\DV and was not on the PATH, or the directory given with -d was
  339.     erroneous.
  340.  
  341.     Memory Allocation Error.  Increase memory size.
  342.     Cannot allocate enough memory to add to Open Window.
  343.     Cannot allocate required memory.
  344.  
  345.     Insufficient memory was available for the attempted operation.  Increase
  346.     the memory size in the DVP files used to run DvpEdit.  If this error
  347.     occurs when using the EP-PIF.DVP, ED-PIF.DVP, or MD-PIF.DVP files
  348.     supplied with DvpEdit, please contact the authors.  Note that under
  349.     conditions of barely sufficient memory DvpEdit may run successfully,
  350.     except for the help facility and the Open Window update feature, one or
  351.     both of which may be inoperative.
  352.  
  353.     A DOS error occurred.
  354.  
  355.     MS-DOS has reported an error, such as a disk drive being not ready.
  356.  
  357.     File is not a DESQview DVP.
  358.  
  359.     An attempt has been made to load a file that is not a well-formed DVP file.
  360.     
  361.     This is a TopView PIF file.  Not all fields are used.
  362.     This is a DESQview 1.0 DVP.  Not all fields are used.
  363.     This is a DESQview 2.0 DVP.  Not all fields are used.
  364.  
  365.     These are warnings, indicating that an old-format DVP file has been
  366.     loaded, and that therefore not all fields in the main edit screen will be
  367.     meaningful.  When the file is saved, the old format will be preserved and
  368.     the contents of the extraneous fields discarded.
  369.  
  370.     When saving xx-PIF.DVP in DV dir, xx must be same as KEYS field.
  371.  
  372.     An attempt has been made to save a DVP file into the DESQview system
  373.     directory with its Keys field value not equal to the first two characters
  374.     of its filename.  The attempt is disallowed.
  375.  
  376.     Cannot write DVP file.
  377.     Cannot open DESQVIEW.DVO.
  378.     Cannot CD to DV system directory.
  379.     Cannot open DESQVIEW.DVO for write.
  380.  
  381.     An error occurred when attempting the named operation.  This may
  382.     indicate a write-protected file, or a network problem.
  383.  
  384.     Internal DVPEDIT error.  Contact authors immediately, please.
  385.  
  386.     If this message is encountered, DvpEdit has malfunctioned.  Please do as
  387.     the message asks.
  388.  
  389. LIMITATIONS
  390.     Minimum memory required in DESQview:        120KB
  391.     Maximum number of files in the filename picklist:    511
  392.  
  393. BUGS
  394.     Unlike DESQview's Open Window menu, DvpEdit's menus and screens do not
  395.     expand to the full height of the screen if a video mode greater than 25
  396.     lines high is in use, but remain exactly 25 lines high.  This may be
  397.     fixed eventually.
  398.  
  399.     If a DVP file which has a blank Directory field and a directory-less
  400.     entry in the Program field is added to the Open Window menu, Add a
  401.     Program changes these to reflect the program's location.  DvpEdit does
  402.     not do this.
  403.  
  404.     In DESQview's emulated-text modes (on a VGA adapter, these are the 30-,
  405.     50- and 60-line modes used to emulate multiple 25-line mode screens),
  406.     incorrect mouse cursor display occurs if text virtualization is not on.
  407.     This is because the mouse driver (MOUSE.COM or MOUSE.SYS) displays its
  408.     cursor by directly accessing video memory.  i386 and i486 users may
  409.     eliminate this problem by turning text virtualization on in ED-PIF.DVP,
  410.     EP-PIF.DVP, and MD-PIF.DVP, and in any windows in which DvpEdit will be
  411.     run from the command line.  For other users, the -m switch provides a
  412.     reasonable workaround.
  413.  
  414.     The help system and this manual do not document the standard DVP fields.
  415.  
  416.     DvpEdit has not been tested with DVP files from versions of DESQview
  417.     before 2.2, although it contains code that should enable it to handle
  418.     these correctly.
  419.  
  420.     No other bugs are known; but as this is version 1.0 there are likely
  421.     to be some.  Please contact the authors if you find one.
  422.  
  423. AUTHORS
  424.     DvpEdit is the result of a collaboration over the Internet between
  425.     Daniel J. Bodoh <bodoh@xraylith.wisc.edu>, and Richard Reiner
  426.     <rreiner@nexus.yorku.ca>.  Dan wrote the internals, and Richard wrote
  427.     the user interface (which depends heavily on the TCXL User Interface
  428.     Development System, (c) 1991 IDC), and most of the documentation.
  429.  
  430.     Information on the structure of DVP files as well that of DESQVIEW.DVO
  431.     was obtained from Ralf Brown's interrupt list.
  432.  
  433. CONTACTING THE AUTHORS
  434.     The following lists several ways to get in touch with the authors of
  435.     DvpEdit.
  436.  
  437.     From the Internet: write to ``dvpedit@xraylith.wisc.edu''.
  438.     From Compuserve: write to ``>INTERNET:dvpedit@xraylith.wisc.edu''.
  439.     From Envoy: write to
  440.       ``[RFC-822=\"dvpedit(a)xraylith.wisc.edu\"]INTERNET/TELEMAIL/US''.
  441.     From Fidonet: send mail to the user ``uucp'' at the nearest UUCP or
  442.       Internet gateway; use ``To: dvpedit@xraylith.wisc.edu'' as the first
  443.       line of the message.
  444.     From Applelink: write to ``dvpedit@xraylith.wisc.edu@internet#''.
  445.  
  446.     It is currently not possible to send mail to the Internet from Genie or
  447.     Prodigy.
  448.  
  449.     Please include a return address if sending email, as not all mailers
  450.     generate correct reply addresses.
  451.  
  452.     You can also phone 416-538-3947 (Richard) or 608-255-3574 (Dan), or write
  453.     to
  454.  
  455.       Richard Reiner
  456.       1-547 Shaw st.
  457.       Toronto, Ontario
  458.       Canada  M6G 3L5
  459.  
  460.     or
  461.  
  462.       Daniel Bodoh
  463.       1402 Regent St. #417
  464.       Madison, WI
  465.       USA  53711
  466.  
  467. DISTRIBUTION
  468.     DvpEdit is copyright (c) 1991, Daniel J. Bodoh and Richard Reiner.  It
  469.     may be distributed freely, but only if no fee other than a small copying
  470.     fee is charged.  It may not be sold, or included with any product that
  471.     is sold, and may be distributed only in unmodified form.  In particular,
  472.     DvpEdit must be distributed with no files added to or removed from the
  473.     distribution archive file.
  474.  
  475.     Source may be made available upon request.  If you are writing a program
  476.     which will be released in freely distributable form and which needs to
  477.     read, write, display, or edit DVP or DVO files, we'll be glad to share.
  478.     We're sorry, but in order to protect ourselves from having altered and
  479.     possibly malicious copies of DvpEdit or parts thereof in circulation, we
  480.     will not release source for less definite purposes.
  481.  
  482.     DvpEdit and Dvpe-Cfg are built in the Medium model with Microsoft C 5.1
  483.     and the TCXL libraries.
  484.